package com.applozic.mobicomkit;

/**
 * ---文本消息/图片消息----
 * from - 发送者 -chunyu
 * type - 对话类型 - ‘group’ 或 'user'
 * to - 接收者 - groupid 或 username
 * <p>
 * ----发红包消息----
 * from - 发送者 -chunyu
 * type - 对话类型 - ‘group’ 或 'user'
 * to - 接收者 - groupid 或 username
 * packetFrom - 红包发送者 - chunyu
 * packetTo - 红包接受者
 * packetType - 红包类型 - 2/3 - 普通红包/拼手气红包
 * packetMessage - 红包留言
 * packetId - 红包id
 * <p>
 * ----抢红包消息----
 * from - 发送者 -chunyu
 * type - 对话类型 - ‘group’ 或 'user'
 * to - 接收者 - groupid 或 username
 * packetFrom - 红包发送者 - chunyu
 * packetTo - 红包接受者
 * packetId - 红包id
 * packetGetId - 子红包id
 * <p>
 * ----打赏消息----
 * from - 发送者 -chunyu
 * type - 对话类型 - ‘group’ 或 'user'
 * to - 接收者 - groupid 或 username
 * rewardFrom - 打赏发送者
 * rewardTo - 打赏接收者
 * rewardTime -  打赏时间
 * rewardMoney -  打赏金额
 * <p>
 * ----语音消息----
 * from - 发送者 -chunyu
 * type - 对话类型 - ‘group’ 或 'user'
 * to - 接收者 - groupid 或 username
 * voiceDuration - 时长 - 30
 */
public class ChatConfig {
    public static final String TYPE_GROUP = "group";
    public static final String TYPE_USER = "user";

    /**
     * 公共部分
     */
    public static final String FROM = "from";
    public static final String TO = "to";//to
    public static final String TYPE = "type";

    /**
     * 红包公共消息
     */
    public static final String PACKET_FROM = "packetFrom";
    public static final String PACKET_TO = "packetTo";
    public static final String PACKET_ID = "packetId";

    /**
     * 发红包消息
     */
    public static final String PACKET_TYPE = "packetType";
    public static final String PACKET_MESSAGE = "packetMessage";
    /**
     * 抢红包消息
     */
    public static final String PACKET_GET_ID = "packetGetId";
    /**
     * 大赏
     */
    public static final String REWARD_FROM = "rewardFrom";
    public static final String REWARD_TO = "rewardTo";
    public static final String REWARD_TIME = "rewardTime";
    public static final String REWARD_MONEY = "rewardMoney";
    /**
     * 语音
     */
    public static final String VOICE_DURATION = "voiceDuration";

    /**
     * 本地需要字段
     */
    public static final String IS_SEND = "is_send";//判断是否是发送
    public static final String TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String CONVERSATION_ID = "conversation_id";

}
